package com.sinping.qh.repository.mongo;

import com.sinping.qh.domain.records.RectifyReviewDomain;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author zhangjin
 * @create 2018/5/28
 */
public interface RectifyReviewRepository extends MongoRepository<RectifyReviewDomain,String> {
    /**
     * 通过隐患记录id查找整改复查记录
     * @param hiddenDangerId
     * @return
     */
    List<RectifyReviewDomain>findAllByHiddenDangerIdOrderByGmtModifiedAsc(String hiddenDangerId);
}
